@page
@using Microsoft.AspNetCore.Authorization
@using EasyAbp.EShop.Payments.Authorization
@using EasyAbp.EShop.Payments.Localization
@using EasyAbp.EShop.Payments.Web.Menus
@using EasyAbp.EShop.Payments.Web.Pages.EShop.Payments.Refunds.Refund
@using Microsoft.Extensions.Localization
@using Volo.Abp.AspNetCore.Mvc.UI.Layout
@model IndexModel
@inject IPageLayout PageLayout
@inject IStringLocalizer<PaymentsResource> L
@inject IAuthorizationService Authorization
@{
    PageLayout.Content.Title = L["Refund"].Value;
    PageLayout.Content.BreadCrumb.Add(L["Menu:Refund"].Value);
    PageLayout.Content.MenuItemName = PaymentsMenus.Refund;
    
    var cardTitle = L["Refund"].Value;
    
    if (Model.StoreName != null)
    {
        cardTitle += $" - {Model.StoreName}";
    }
    
    if (Model.UserName != null)
    {
        cardTitle += $" - {Model.UserName}";
    }
}

@section scripts
{
    <abp-script src="/Pages/EShop/Payments/Refunds/Refund/index.js" />
}
@section styles
{
    <abp-style src="/Pages/EShop/Payments/Refunds/Refund/index.css"/>
}

<abp-card>
    <abp-card-header>
        <abp-row>
            <abp-column size-md="_6">
                <abp-card-title>@cardTitle</abp-card-title>
            </abp-column>
        </abp-row>
    </abp-card-header>
    <abp-card-body>
        <abp-table striped-rows="true" id="RefundTable" class="nowrap">
            <thead>
            <tr>
                <th>@L["Actions"]</th>
                <th>@L["RefundPaymentId"]</th>
                <th>@L["RefundRefundPaymentMethod"]</th>
                <th>@L["RefundExternalTradingCode"]</th>
                <th>@L["RefundCurrency"]</th>
                <th>@L["RefundRefundAmount"]</th>
                <th>@L["RefundDisplayReason"]</th>
                <th>@L["RefundCustomerRemark"]</th>
                <th>@L["RefundStaffRemark"]</th>
                <th>@L["RefundCompletedTime"]</th>
                <th>@L["RefundCanceledTime"]</th>
            </tr>
            </thead>
        </abp-table>
    </abp-card-body>
</abp-card>